summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-07-05 15:23:34 +0200
committerGitHub <noreply@github.com>2023-07-05 15:23:34 +0200
commitf71140fbd96cbf61fc1a59160af398c118d1b0d6 (patch)
tree70cf1aa0b0d6cb546e7401ca9526017abf038ee8
parentMerge pull request #11017 from bunnei/fix-turnip-sd870 (diff)
parentoops re open (diff)
downloadyuzu-f71140fbd96cbf61fc1a59160af398c118d1b0d6.tar
yuzu-f71140fbd96cbf61fc1a59160af398c118d1b0d6.tar.gz
yuzu-f71140fbd96cbf61fc1a59160af398c118d1b0d6.tar.bz2
yuzu-f71140fbd96cbf61fc1a59160af398c118d1b0d6.tar.lz
yuzu-f71140fbd96cbf61fc1a59160af398c118d1b0d6.tar.xz
yuzu-f71140fbd96cbf61fc1a59160af398c118d1b0d6.tar.zst
yuzu-f71140fbd96cbf61fc1a59160af398c118d1b0d6.zip
-rw-r--r--src/video_core/texture_cache/texture_cache.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h
index 79f158db4..3a859139c 100644
--- a/src/video_core/texture_cache/texture_cache.h
+++ b/src/video_core/texture_cache/texture_cache.h
@@ -598,6 +598,10 @@ void TextureCache<P>::UnmapGPUMemory(size_t as_id, GPUVAddr gpu_addr, size_t siz
[&](ImageId id, Image&) { deleted_images.push_back(id); });
for (const ImageId id : deleted_images) {
Image& image = slot_images[id];
+ if (True(image.flags & ImageFlagBits::CpuModified)) {
+ continue;
+ }
+ image.flags |= ImageFlagBits::CpuModified;
if (True(image.flags & ImageFlagBits::Remapped)) {
continue;
}